// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'
import axios from 'axios'
import 'element-ui/lib/theme-chalk/index.css'
import store from './store'

//导入自己的样式文件
import './style/theme.css'
import './style/character.css'

Vue.use(ElementUI) //注册element-ui
// Vue.prototype.axios = axios
// Vue.prototype.store = store

Object.assign(Vue.prototype, {
  $axios: axios,
  $store: store,
  foo () {
    console.log('foo')
  },
  bar () {
    console.log('bar')
  }
})
Vue.prototype;

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
